<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%
	pageContext.setAttribute("APP_PATH", request.getContextPath());
%>

<title>首页</title>
<link rel="icon" type="image/x-icon" href="${APP_PATH }/static/images/runner.ico" />
<!-- web路径：
不以/开始的相对路径，找资源，以当前资源的路径为基准，经常容易出问题。
以/开始的相对路径，找资源，以服务器的路径为标准(http://localhost:3306)；需要加上项目名
		http://localhost:3306/crud
 -->
<style type="text/css">
 #down_list li {
	text-align: center;
}

.font_selected {
	background-color: red;
}

.train_form_input {
	width: 350;
	height: 34px;
	font-size: 14px;
	line-height: 1.42857143;
	color: #555;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.hotel_panel {
	display: block;
}
</style>
 
<script type="text/javascript"
	src="${APP_PATH }/static/js/jquery.min.js"></script>
<link
	href="${APP_PATH }/static/bootstrap-3.3.7-dist/css/bootstrap.min.css"
	rel="stylesheet">
<script
	src="${APP_PATH }/static/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(function() {

	$("#user_do").hover(function() {
		$("#user_do_list").show();
	}, function() {
		$("#user_do_list").hide();
	});



	//显示酒店 
	$("#hotel_href").click(function() {
		window.location.href="${APP_PATH }/hotelController/toHotelIndex";
	});

	//显示火车票
	$("#train_href").click(function() {
		window.location.href="${APP_PATH }/trainController/toTrainIndex";
	});

	//显示飞机票
	$("#plane_href").click(function() {
		window.location.href="${APP_PATH }/planeController/toPlaneIndex";
	});
	
	//飞机票订单
	$("#plane_order").click(function(){
		window.location.href="${APP_PATH }/planeController/toPlaneOrderList";
		$("#user_do_list").hide();
	});
	
	//火车票订单
	$("#train_order").click(function(){
		window.location.href="${APP_PATH }/trainController/toTrainOrderList";
		$("#user_do_list").hide();
	});
	
	//酒店订单
	$("#hotel_order").click(function(){
		window.location.href="${APP_PATH }/hotelController/toHotelOrderList";
		$("#user_do_list").hide();
	});
	
	
	
});
</script>
</head>
<body>
<div class="container">
		<!-- 显示上方选择框 -->
		<div class="row" style="background: white;">
			<div class="row" style="background: white; height: 50px;"></div>
			<div class="col-md-3" style="padding-bottom: 10px;">
				<img alt="logo" src="${APP_PATH }/static/images/logo.png">
			</div>
			<div class="col-md-7" style="padding-bottom: 0px;">
				<ul class="nav nav-tabs">
					<li role="presentation" style="font-weight: bold;" class="active" id="plane_href"><a
						href="javascript:void(0);" >飞机票</a></li>
					<li role="presentation" style="font-weight: bold;" id="train_href"><a
						href="javascript:void(0);">火车票</a></li>
					<li style="font-weight: bold;"  id="hotel_href"><a
						href="javascript:void(0);">酒店</a></li>
				</ul>
			</div>
			<div class="col-md-2" style="padding-bottom: 0px;" id="user_do">
				<div class="dropdown">
					<img src="${APP_PATH }/static/images/timg.jpg" />
					<div
						style="display: none; padding: 0px; margin: 0px; border: none;"
						id="user_do_list">
						<ul class="dropdown-menu" aria-labelledby="dropdownMenu1"
							style="display: block;" id="down_list">
							<li ><a href="javascript:void(0);" id="plane_order">飞机票订单</a></li>
							<li class="divider"></li>
							<li ><a href="javascript:void(0);" id="train_order">火车票订单</a></li>
							<li  class="divider"></li>
							<li ><a href="javascript:void(0);" id="hotel_order">酒店订单</a></li>
							<li  class="divider"></li>
							<li ><a href="${APP_PATH }/userController/toUserLogin" id="login_order">登陆|注册</a></li>
						</ul>
					</div>
				</div>
			</div>
		</div>
		<br /> <br />
		<!-- 显示酒店  -->
		</div>
</body>
</html>